/**
 * 
 */
package com.deepblack.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;

/**
 * @author winneryong
 *
 */
@Entity
public class Posts extends IdEntity implements Serializable {

	private static final long serialVersionUID = -1553096175808234365L;

	private String author;
	
	private Date postDate;
	
	private Date postDateGmt;
	
	private String content;
	
	private String title;
	
	private Categories category;
	
	private String excerpt;
	
	private String status;
	
	private String commentStatus;
	
	private String pingStatus;
	
	private String password;
	
	private String name;
	
	private String toPing;
	
	private String pinged;
	
	private Date modified;
	
	private Date modifiedGmt;
	
	private String contentFiltered;
	
	private Posts parent;
	
	private String guid;
	
	private Integer menuOrder;
	
	private String type;
	
	private String mimeType;
	
	private Integer commentCount;

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Date getPostDate() {
		return postDate;
	}

	public void setPostDate(Date postDate) {
		this.postDate = postDate;
	}

	public Date getPostDateGmt() {
		return postDateGmt;
	}

	public void setPostDateGmt(Date postDateGmt) {
		this.postDateGmt = postDateGmt;
	}

	@Lob
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@ManyToOne(fetch=FetchType.LAZY)
	public Categories getCategory() {
		return category;
	}

	public void setCategory(Categories category) {
		this.category = category;
	}

	public String getExcerpt() {
		return excerpt;
	}

	public void setExcerpt(String excerpt) {
		this.excerpt = excerpt;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getCommentStatus() {
		return commentStatus;
	}

	public void setCommentStatus(String commentStatus) {
		this.commentStatus = commentStatus;
	}

	public String getPingStatus() {
		return pingStatus;
	}

	public void setPingStatus(String pingStatus) {
		this.pingStatus = pingStatus;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getToPing() {
		return toPing;
	}

	public void setToPing(String toPing) {
		this.toPing = toPing;
	}

	public String getPinged() {
		return pinged;
	}

	public void setPinged(String pinged) {
		this.pinged = pinged;
	}

	public Date getModified() {
		return modified;
	}

	public void setModified(Date modified) {
		this.modified = modified;
	}

	public Date getModifiedGmt() {
		return modifiedGmt;
	}

	public void setModifiedGmt(Date modifiedGmt) {
		this.modifiedGmt = modifiedGmt;
	}

	public String getContentFiltered() {
		return contentFiltered;
	}

	public void setContentFiltered(String contentFiltered) {
		this.contentFiltered = contentFiltered;
	}

	public Posts getParent() {
		return parent;
	}

	public void setParent(Posts parent) {
		this.parent = parent;
	}

	public String getGuid() {
		return guid;
	}

	public void setGuid(String guid) {
		this.guid = guid;
	}

	public Integer getMenuOrder() {
		return menuOrder;
	}

	public void setMenuOrder(Integer menuOrder) {
		this.menuOrder = menuOrder;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getMimeType() {
		return mimeType;
	}

	public void setMimeType(String mimeType) {
		this.mimeType = mimeType;
	}

	public Integer getCommentCount() {
		return commentCount;
	}

	public void setCommentCount(Integer commentCount) {
		this.commentCount = commentCount;
	}
	
}
